<%@ page isErrorPage="true" import="java.io.PrintWriter" %>
<%@ include file="/WEB-INF/common/global.jsp" %>
<jsp:include page="/WEB-INF/common/header.jsp" />
	<%
	  String ref = request.getHeader("referer");
	  if (ref != null) { 
	%>
	<iframe src="<%= request.getHeader("referer") %>" width="100%" height="800px">
  		<p>Your browser does not support iframes.</p>
	</iframe>
	<% } %>	
	
	<div class="error-404-overlay centered" ></div>

	<div class="error-page-div">
		<form action="<%=ref == null ? request.getContextPath() : ref %>" method="post">
			<div class="page-error">
				<h1>Error</h1>
				<p>An error occurred during processing the request</p>
				<div class="search">
					<input value="Back" class="small-button greyButton" type="submit" />
				</div>
				<% exception.printStackTrace(new PrintWriter(out)); %>
			</div>
		</form>
	</div>
<jsp:include page="/WEB-INF/common/footer.jsp" />